package com.geekaca.test;

public class learnLoop {
    public static void main(String[] args) {
        /**
         * 学习循环结构
         */

        long start = System.currentTimeMillis();
        for (int i = 1; i <= 100000; i++) {
            System.out.println("i: " + i);
        }
        // 打印10万个数,耗费109亳秒, 1秒 second = 1000亳秒 millisecond
        System.out.println(System.currentTimeMillis());
        System.out.println("经过了: " + (System.currentTimeMillis() - start) + "毫 秒");
    }
}
